#ifndef APPMANAGER_H
#define APPMANAGER_H

#include <QObject>
#include "Login.h"
#include "Controller.h"

class AppManager : public QObject
{
    Q_OBJECT
public:
    AppManager(QObject* parent = nullptr);
    ~AppManager();
    void resetInformation();// 清除配置文件和已经保存的头像

private slots:
    void onLoginSucceed(QString id);// 切换成主窗体
    void onGoBackToLogin();// 切换成登录窗口

private:
    Login* m_login;
    Controller* m_controller;
};

#endif // APPMANAGER_H
